const ReportClass = [
    {
        name:'明细-机构',
        value: 1
    },
    {
        name:'明细-居家',
        value: 2
    },
    {
        name:'明细-评估',
        value: 3
    },
    // {
    //     name:'汇总-居家',
    //     value: 11
    // },
    // {
    //     name:'汇总-机构',
    //     value: 12
    // },
    // {
    //     name:'汇总-评估',
    //     value: 13
    // }
];

ReportClass.getClass = (value)=>{
    for(let k in ReportClass){
        if(ReportClass[k].value == value){
            return ReportClass[k];
        }
    }
    return null;
};

const IndividualClass = [
    {
        name:'一类',
        value: 1
    },
    {
        name:'二类',
        value: 2
    },
    {
        name:'特殊',
        value: 3
    },
    {
        name:'帮困',
        value: 4
    }
];

IndividualClass.getClass = (value)=>{
  for(let k in IndividualClass){
      if(IndividualClass[k].value == value){
          return IndividualClass[k];
      }
  }
  return null;
};
IndividualClass.getByName= (name)=>{
    for(let k in IndividualClass){
        if(IndividualClass[k].name == name){
            return IndividualClass[k];
        }
    }
    return null;
};


export {
    ReportClass, IndividualClass
}
